<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>欢迎访问产品运营互动中心！</title>

<script src="<s:url value="/script/jquery_last.js"/>" type="text/javascript"></script>
<script src="<s:url value="/script/formValidator.js"/>" type="text/javascript" charset="UTF-8"></script>
<script src="<s:url value="/script/formValidatorRegex.js"/>" type="text/javascript" charset="UTF-8"></script>
<script language="javascript" src="<s:url value="/script/DateTimeMask.js"/>" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({autotip:true,onerror:function(msg){alert(msg)}});
	$("select[name='contractInfo.referenceType.id']").formValidator({tipid:"referenceTypetip",onshow:"资料类型"}).inputValidator({onerror:"您还没有输入资料类型",empty:{leftempty:false,rightempty:false,emptyerror:"资料类型不能为空"}});
	$("input:text[name='contractInfo.title']").formValidator({tipid:"titletip",onshow:"标题"}).inputValidator({min:1,onerror:"您还没有输入标题",empty:{leftempty:false,rightempty:false,emptyerror:"标题两边不能有空符号"}});
	$("textarea[name='contractInfo.content']").formValidator({tipid:"contenttip",onshow:"内容"}).inputValidator({min:1,max:300,onerror:"您输入的描述长度不正确,请确认"});
	$("input:text[name='contractInfo.keyword']").formValidator({tipid:"keywordtip",onshow:"关键字"}).inputValidator({min:1,onerror:"您还没有输入资料关键字",empty:{leftempty:false,rightempty:false,emptyerror:"关键字两边不能有空符号"}});
});
</script>
<script type="text/javascript" src="<s:url value="/script/selfResize.js"/>"></script>
<script type="text/javascript">
function show(url){
	window.open(url);
}
function initLoad(){
	f_iframeResize();
}
window.onload = initLoad;
window.setInterval("initLoad()", 200);
</script>
<link rel="stylesheet" href="<s:url value="/css/style_new.css"/>">
<link rel="stylesheet" href="<s:url value="/css/validator.css"/>">

<link href="<s:url value="/images/08_ccxxzx.css"/>" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<table width="980" border="0" cellspacing="0" cellpadding="0" align="center">
		<tr>
			<td>
			<table width="100%" border="0" cellpadding="0" cellspacing="0"
				background="<s:url value="/images/new/gxzl_index_2.gif"/>">
				<tr>
					<td width="20" height="32">&nbsp;</td>
					<td width="20"><img
						src="<s:url value="/images/new/dq_dot.gif"/>" width="15"
						height="12" /></td>
				<td>当前位置：<font color="#003399">合同管理</font>&gt;&gt;合同上传</td>
				</tr>
			</table>
			</td>
		</tr>
	
	<tr>
		<td background="<s:url value="/images/home_4a.gif"/>">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
			<tr>
		    <td  background="<s:url value="/images/home_4a.gif"/>"> 
		      <table width="100%" height="400" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
		        <tr>
		          <td width="240" valign="top" class="leftbg">
					<%@ include file="/commons/include/contract_left.inc"%>  
				  </td>
		          <td valign="top">
						<s:form name="form1" id="form1" action="saveContractInfo.action" namespace="/security" method="post" enctype="multipart/form-data" >
							<input type="hidden" name="contractInfo.id" value="${contractInfo.id}">
							<table width="98%" align="center" border="0" cellspacing="0" cellpadding="0">
								<br/>
								<tr>
									<td height="5">
										<table width="100%" border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td width="5" height="5"><img src="<s:url value="/images/cphdzx_tab1.gif"/>" width="5" height="5" /></td>
												<td class="tdborderup"><img src="<s:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
												<td width="5"><img src="<s:url value="/images/cphdzx_tab2.gif"/>" width="5" height="5" /></td>
											</tr>
										</table>
									</td>
								</tr>
								<tr>
									<td  class="tdborderleftright">
									<TABLE width="98%" cellSpacing=1 cellPadding=0 align="center">
										<TR height=30>
											<TD align=left width="10%">
				<secu:out resType="OBJECT" code="OBJ_CONTRACT_MAN">
												<input type="button" name="button" value="提交并转入会签" onclick="document.form1.action='saveCountersigned.action';document.form1.submit();">
				</secu:out>
												<input type="submit" IsShowProcessBar="True" name="Submit" value="提 交">
												<input type="button" value="返 回" onClick="window.history.back();">
											</TD>
										</TR>
									</table>
									<s:if test="#returnMsg==null">
									</s:if> <s:else>
										<TABLE width="98%" cellSpacing=1 cellPadding=0 align="center">
											<TR height=30>
												<TD align=left width="10%"><font color="red">${returnMsg}</font>
												</TD>
											</TR>
										</table>
									</s:else>
									<table width="98%" border="0" cellspacing="0" cellpadding="7"
										align="center" class=tablecolor2>
										<tr>
											<td width="23%" bgcolor="D6E3FA">
											<div align="right"><font color="red">*</font>合同名称：</div>
											</td>
											<td width="77%"><s:textfield name="contractInfo.contractName" theme="css_xhtml" size="80" maxlength="100"/></td>
										</tr>
										<tr>
											<td width="23%" bgcolor="D6E3FA">
											<div align="right">产品类别：</div>
											</td>
											<td width="77%">
												<s:select name="contractInfo.contractType.id" list="contractTypes" listKey="id" listValue="name" theme="css_xhtml" />
											</td>
										</tr>
										<tr>
											<td width="23%" bgcolor="D6E3FA">
											<div align="right">签约方公司名称：</div>
											</td>
											<td width="77%"><s:textfield name="contractInfo.signatoriesName" theme="css_xhtml" size="80" maxlength="100"/></td>
										</tr>

																<tr>
																	<td width="19%" bgcolor="D6E3FA">
																		<div align="right" class="STYLE2">
																			附&nbsp;&nbsp;&nbsp;&nbsp;件：
																		</div>
																	</td>
																	<td width="81%">
																		<table width="100%" border="0" class=tablecolor2>
																			<tr>
																				<td width="" align="center" bgcolor="D6E3FA">
																					附件名称
																				</td>
																				<td width="50" align="center" bgcolor="D6E3FA">
																					删除
																				</td>
																			</tr>
																			
																			<c:forEach var="upload" items="${contractUploads}">
																				<input type="hidden" name="attachIDs"
																					value="<s:property value="id" />" />
																				<tr>
																					<td>
																						<a 
																							href="/business/contract/showUpload.action?id=${upload.id}"
																							target="_blank"> ${upload.fileName }
																						</a>
																					</td>
																					<td align="center">
																						<input type="checkbox" name="delIDs"
																							value="${upload.id}">
																					</td>
																				</tr>
																			</c:forEach>
																		</table>
																		<br />
																		<table width="100%" border="0" class=tablecolor2>
																			<tr>
																				<td width="" colspan="2" align="left"
																					bgcolor="D6E3FA">
																					附件上传
																				</td>
																			</tr>
																			<tr>
																				<td width="10px">
																					&nbsp;
																				</td>
																				<td align="left">
																					<input type="file" name="upload" size="40" />
																				</td>
																			</tr>
																			<tr>
																				<td>
																					&nbsp;
																				</td>
																				<td>
																					<input type="file" name="upload" size="40"  />
																				</td>
																			</tr>
																			<tr>
																				<td>
																					&nbsp;
																				</td>
																				<td>
																					<input type="file" name="upload" size="40" />
																				</td>
																			</tr>
																		</table>
																	</td>
																</tr>
						<s:if test="contractInfo.id>0">
										<tr>
											<td width="23%" bgcolor="D6E3FA">
											<div align="right">处理意见：</div>
											</td>
											<td width="77%">
													<s:textarea rows="3" cols="60" name="contractRecord.advice" theme="css_xhtml"></s:textarea>
											</td>
										</tr>
					 	</s:if>
					 					<!-- 
										<tr>
											<td width="23%" bgcolor="D6E3FA">
											<div align="right">传送人员：</div>
											</td>
											<td width="77%">
												<s:iterator value="processors" status="st">
														<input type="checkbox" name="nextTo" value="<s:property value="name" />" checked><s:property value="name" />
												</s:iterator>
											</td>
										</tr>
										 -->
										<tr>
											<td width="23%" bgcolor="D6E3FA">
											<div align="right">合同类型：</div>
											</td>
											<td width="77%">
													<select name="actContract.frameFlag">
														<option value="1">合同</option>
														<option value="2">框架</option>
														<option value="3">订单</option>
													</select>
											</td>
										</tr>
										<tr>
											<td width="23%" bgcolor="D6E3FA">
											<div align="right">公司类型：</div>
											</td>
											<td width="77%">
													<select name="actContract.companyFlag">
														<option value="1">股份公司</option>
														<option value="2">存续公司</option>
														<option value="0">网络资产公司</option>
													</select>
											</td>
										</tr>
										
					 	
										<input type="hidden" name="contractInfo.nextUser" value="${contractInfo.nextUser}">
										<input type="hidden" name="contractInfo.creator" value="${contractInfo.creator}">
										<input type="hidden" name="contractInfo.createTime"
											value="<s:date name="contractInfo.createTime" format="yyyy-MM-dd HH:mm"/>">
										<input type="hidden" name="contractInfo.begin"
											value="<s:date name="contractInfo.begin" format="yyyy-MM-dd HH:mm"/>">
										<input type="hidden" name="contractInfo.end"
											value="<s:date name="contractInfo.end" format="yyyy-MM-dd HH:mm"/>">
										<input type="hidden" name="contractInfo.status" value="${contractInfo.status}">
												
									</table>
									<br>[以下为处理流程]<br>
									
									<table width="98%" border="0" cellspacing="0" cellpadding="7"
										align="center" class=tablecolor2>
							<s:iterator value="contractRecords" status="st">
										<tr>
											<td width="100%" colspan="2">操作者:<s:property value="creator" /> <s:date name="begin" format="yyyy-MM-dd HH:mm"/></td>
										</tr>
										<tr>
											<td width="18%">
											<div>处理意见</div>
											</td>
											<td width="*"><s:property value="advice" /></td>
										</tr>
							</s:iterator>
									</table>
									
									</td>
								</tr>
								
								<tr>
									<td height="5">
										<table width="100%" border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td width="5" height="5"><img src="<s:url value="/images/cphdzx_tab3.gif"/>" width="5" height="5" /></td>
												<td class="tdborderbottom"><img src="<s:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
												<td width="5"><img src="<s:url value="/images/cphdzx_tab4.gif"/>" width="5" height="5" /></td>
											</tr>
										</table>
									</td>
								</tr>
							</table></td>
					</tr>
				</table>
				</s:form> 
</body>
</html>
<script>
var obj1=document.getElementById("iTR3");
if(obj1){
	obj1.style.backgroundColor="B3DEF4";
}
</script>